package jrain.flow.engine.uitls;

import jrain.flow.engine.cache.FlowCache;
import jrain.flow.engine.dis.DispatchService;
import jrain.flow.engine.fd.FdService;
import jrain.flow.engine.fi.FiService;
import jrain.flow.engine.node.NodeService;
import jrain.fw.core.utils.FwUtils;

public class FlowUtils {

	public static FlowCache getFlowCache() {
		return FwUtils.getServiceContext().getService(FlowConst.S_CACHE_SERVICE, FlowCache.class);
	}

	public static FdService getFdService() {
		return FwUtils.getServiceContext().getService(FlowConst.S_FD_SERVICE, FdService.class);
	}

	public static FiService getFiService() {
		return FwUtils.getServiceContext().getService(FlowConst.S_FI_SERVICE, FiService.class);
	}

	public static DispatchService getDispatchService() {
		return FwUtils.getServiceContext().getService(FlowConst.S_DIS_SERVICE, DispatchService.class);
	}
	
	public static NodeService getNodeService(){
		return FwUtils.getServiceContext().getService(FlowConst.S_NODE_SERVICE, NodeService.class);
	}
}
